:global {
  .ant-form {
    width: 100%;
  }
  .ant-row {
    width: 100%;
  }
  .ant-btn {
    &:hover {
      opacity: 0.6;
    }
  }

  .ant-select-selector {
    border-color: #e4eaff !important;
  }
}

.baseInfoBox {
  display: flex;
  justify-content: space-between;
  min-width: fit-content;

  .baseInfoText {
    margin-right: 24px;

    .nameAndType {
      display: flex;
      justify-content: space-between;

      .name {
        width: 100%;
      }

      .type {
        width: 100%;
        margin-left: 14px;
      }
    }
  }
}

.leftBox {
  scrollbar-width: none;
  -ms-overflow-style: none;
  &::-webkit-scrollbar {
    display: none;
  }
}

.tipBox {
  .tipBoxTab {
    :global {
      .ant-tabs-nav::before {
        border-bottom: 1px solid #d3dbf8 !important;
      }
    }
  }

  margin-right: 25px;
  .TextArea {
    position: relative;

    .textField {
      color: #a8a4a4 !important;
      border: none !important;
      &:focus {
        color: #000000 !important;
        border: none !important;
        box-shadow: none !important;
      }
      &:global {
        scrollbar-width: none;
        -ms-overflow-style: none;
        &::-webkit-scrollbar {
          display: none;
        }
      }
    }
  }
  .tipLabel {
    font-weight: 500;
    line-height: 32px;
    letter-spacing: 0px;
    font-weight: 500;
    color: #000000;
  }
  .tipTitle {
    display: flex;
    justify-content: space-between;
  }
  .rightBotton {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    gap: 8px;
    bottom: 13px;
    left: 20px;
    width: auto;
    padding: 0 10px;
    height: 32px;
    line-height: 30px;
    // border: 1px solid #6356EA;
    border-radius: 8px;
    text-align: center;
    opacity: 1;
    cursor: pointer;
    color: #6356EA;
    background: #ffffff;

    &::before {
      content: "";
      width: calc(100% + 2px);
      height: calc(100% + 2px);
      border-radius: 9px;
      background: linear-gradient(270deg, #6356EA 0%, #c927ff 100%);
      position: absolute;
      top: -1px;
      left: -1px;
      z-index: -1;
    }

    .rightBottonIcon {
      width: 16px;
      height: 16px;
    }
  }
  .tipBotton {
    display: flex;
    margin-bottom: 20px;
    .leftImg {
      width: 14px;
      height: 14px;
      margin-top: 8.8px;
      margin-right: 3px;
    }
    .leftBotton {
      display: flex;
      justify-content: center;
      gap: 8px;
      width: auto;
      padding: 0 10px;
      height: 32px;
      line-height: 30px;
      border-radius: 8px;
      text-align: center;
      opacity: 1;
      background: #ffffff;
      box-sizing: border-box;
      border: 1px solid #6356EA;
      margin-right: 15px;
      cursor: pointer;
      color: #6356EA;
    }
  }
}

.tipPkBox {
  > h1 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .tipPkItemActive {
    border-radius: 8px;
    border: 1px solid #6356EA;
    margin-bottom: 8px;
    padding: 10px;
    position: relative;
    background: #f6f9ff;
    .tipPkTitle {
      margin-bottom: 16px;
    }

    .tipPkTextArea {
      color: #a8a4a4 !important;
      border: none !important;
      &:focus {
        color: #000000 !important;
        border: none !important;
        box-shadow: none !important;
      }
    }

    .tipBtn {
      height: 30px;
      border-radius: 8px;
      border: 1px solid #e4eaff;
      position: relative;
      left: 82%;
    }
  }
  .tipPkItem {
    border-radius: 8px;
    border: 1px solid #e4eaff;
    margin-bottom: 8px;
    padding: 10px;
    position: relative;

    .tipPkTitle {
      margin-bottom: 16px;
    }

    .tipPkTextArea {
      color: #a8a4a4 !important;
      border: none !important;
      &:focus {
        color: #000000 !important;
        border: none !important;
        box-shadow: none !important;
      }
    }

    .tipBtn {
      height: 30px;
      border-radius: 8px;
      border: 1px solid #e4eaff;
      position: relative;
      left: 82%;
    }
  }
}

.testArea {
  flex-shrink: 99999;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 178px);

  .testInfo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 150;

    .testName {
      background-size: contain;
      height: 32px;
      line-height: 32px;
      font-size: 18px;
      font-weight: 500;
      color: #37375e;
    }

    .testDesc {
      margin-top: 7px;
      min-height: 28px;
      font-size: 14px;
      line-height: 28px;
      padding-bottom: 11px;
      font-weight: 500;
      color: #7b7b9b;
    }

    .testBtn {
      :global {
        .ant-btn {
          height: 32px;
          border-radius: 8px;
          background: #ffffff;
          box-sizing: border-box;
          border: 1px solid #e4eaff;
          color: #6356EA;
          margin-left: 12px;

          &:hover {
            opacity: 0.6;
          }
        }
      }
    }
  }

  .testInputModal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 150;
    flex-grow: 1;
    height: calc(100% - (32px + 130px));
    overflow: auto;
    margin-bottom: 35px;

    .ModelItem {
      padding: 16px;
      max-width: 49%;
      flex: 0 0 calc(100% / var(--count) - calc(16px * (var(--count) - 1) / var(--count)));
      border-radius: 8px;
      background: #ffffff;
      border: 1px solid #e4eaff;
    }

    .signlItem {
      flex: 1;
      border: none !important;
    }
  }

  .dialog {
    width: 100%;
    height: 95px;
    border: 1px solid;
  }
}

.ask_wrapper {
  position: relative;
  width: 100%;
  border-radius: 6px;
  height: 95px;
  display: flex;

  .quit_botmode {
    width: 107px;
    height: 26px;
    position: absolute;
    top: -34px;
    left: 0;
    background: #fff;
    border: 1px solid #e4ebf9;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #535875;
    z-index: 40;
    cursor: pointer;

    &:hover {
      color: #6b89ff;
    }
  }

  textarea {
    border-radius: 8px;
    position: absolute;
    left: 2px;
    bottom: 2px;
    width: calc(100% - 4px);
    line-height: 25px;
    min-height: 95px;
    max-height: 180px;
    resize: none;
    outline: none;
    border: none;
    font-size: 14px;
    border: 1px solid #d2dbe7;
    border-radius: 8px;
    padding: 10px 32px;
    padding-right: 100px;
    padding-left: 16px;
    color: #07133e;
    z-index: 32;
    &::placeholder {
      color: #d0d0da;
    }
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .send {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 70px;
    height: 38px;
    margin-left: 20px;
    border-radius: 8px;
    background: #8aa5e6;
    line-height: 38px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 35;
    &:hover {
      background: #257eff !important;
      opacity: 1 !important;
    }
  }
}

:global(.lang-en) {
  .leftBotton {
    width: auto !important;
    min-width: 126px !important;
    padding: 0 12px;
  }
  .rightBotton {
    width: auto !important;
    min-width: 126px !important;
    padding: 0 12px;
  }
}
